#!/usr/bin/env python
# -*- coding:utf-8 -*-

from flask_restful import Api

from . import consulting_blueprint
from api_1_0.consultingResource.consultingResource import ConsultingResource
from api_1_0.consultingResource.consultingOtherResource import ConsultingOtherResource

api = Api(consulting_blueprint)

api.add_resource(ConsultingResource, '/consulting/<consult_id>', '/consulting', endpoint='Consulting')


@consulting_blueprint.route('/consulting/update/<consult_id>', methods=['PUT'], endpoint='ConsultingUpdate')
def update(consult_id):
    return ConsultingOtherResource.sensitive_update(consult_id)
